package com.supermarket.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.supermarket.business.domain.SupermarketSupplier;
import com.supermarket.common.annotation.AutoFill;
import com.supermarket.common.enums.OperationType;

import java.util.List;

/**
 * 供应商Mapper接口
 * 
 * @author ruoyi
 * @date 2025-07-21
 */
public interface SupermarketSupplierMapper extends BaseMapper<SupermarketSupplier>
{
    /**
     * 查询供应商
     * 
     * @param supplierId 供应商主键
     * @return 供应商
     */
    public SupermarketSupplier selectSysSupplierBySupplierId(Long supplierId);

    /**
     * 查询供应商列表
     * 
     * @param supermarketSupplier 供应商
     * @return 供应商集合
     */
    public List<SupermarketSupplier> selectSysSupplierList(SupermarketSupplier supermarketSupplier);

    /**
     * 新增供应商
     * 
     * @param supermarketSupplier 供应商
     * @return 结果
     */
    @AutoFill(value = OperationType.INSERT)
    public int insertSysSupplier(SupermarketSupplier supermarketSupplier);

    /**
     * 修改供应商
     * 
     * @param supermarketSupplier 供应商
     * @return 结果
     */
    @AutoFill(value = OperationType.UPDATE)
    public int updateSysSupplier(SupermarketSupplier supermarketSupplier);

    /**
     * 删除供应商
     * 
     * @param supplierId 供应商主键
     * @return 结果
     */
    public int deleteSysSupplierBySupplierId(Long supplierId);

    /**
     * 批量删除供应商
     * 
     * @param supplierIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysSupplierBySupplierIds(Long[] supplierIds);
}
